<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<s:fielderror/>
<s:form action="saveProductAction">
<s:textfield  name="product.id" label="产品编号"/>
<s:textfield name="product.name"  label="产品名称"/>
<s:textfield name="product.price" label="产品价格"/>
<s:textfield name="product.buildDate" label="生产日期"/>
<s:submit value="添加"></s:submit>
</s:form>
<a  href="deleteProductAction?product.id=-1">删除商品</a>
</body>
</html>